#ifndef __FUND_H__
#define __FUND_H__

#include "stock.h"

class Fund
{
    Stock1 *stock1 = nullptr;
    Stock2 *stock2 = nullptr;
    Stock3 *stock3 = nullptr;
public:
    Fund()
    {
        stock1 = new Stock1();
        stock2 = new Stock2();
        stock3 = new Stock3();
    }
    void Sell()
    {
        stock1->Sell();
        stock2->Sell();
        stock3->Sell();
    }
    void Buy()
    {
        stock1->Buy();
        stock2->Buy();
        stock3->Buy();
    }
};

#endif